﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Blazing.BusinessObjects.Products;

namespace Blazing.WebFacade.eCommerce
{
    /// <summary>
    /// Defines an interface supported by the cms to process orders
    /// </summary>
    public interface ICheckout
    {
        void AddItemToCart(Product item);
        void RemoveCartItem(Product item);
        List<Product> GetCartItems();

        /// <summary>
        /// Gets order information
        /// </summary>
        Order GetOrder();
        /// <summary>
        /// Send order to Checkout Service
        /// </summary>
        /// <returns>Order information</returns>
        Order ProcessOrder();
    }
}
